/*
 * object_loader.h
 *
 *  Created on: 12/05/2013
 *      Author: alex
 */

#ifndef OBJECT_LOADER_H_
#define OBJECT_LOADER_H_

#include <stdlib.h>
#include <stdio.h>

typedef struct
{
	long double x, y, z;
} vector_t;

typedef struct
{
	long double x, y, z;
	vector_t normal;
} vertice_t;

typedef struct
{
	int indices[3];
	vector_t normal;
} superficie_t;

typedef struct
{
	int num_superficies;
	int num_vertices;

	superficie_t* superficies;
	vertice_t* vertices;
} objeto_t;

extern objeto_t cargar_objeto(char* ruta);

#endif /* OBJECT_LOADER_H_ */
